Integrand size = 20, antiderivative size = 364 \[ \int \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2 \, dx=\frac {4 a b d n \sqrt [3]{x}}{e}-\frac {32 b^2 d n^2 \sqrt [3]{x}}{3 e}+\frac {8}{9} b^2 n^2 x+\frac {32 b^2 d^{3/2} n^2 \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )}{3 e^{3/2}}-\frac {4 i b^2 d^{3/2} n^2 \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )^2}{e^{3/2}}-\frac {8 b^2 d^{3/2} n^2 \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}+i \sqrt {e} \sqrt [3]{x}}\right )}{e^{3/2}}+\frac {4 b^2 d n \sqrt [3]{x} \log \left (c \left (d+e x^{2/3}\right )^n\right )}{e}-\frac {4}{3} b n x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )-\frac {4 b d^{3/2} n \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )}{e^{3/2}}+x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2-\frac {4 i b^2 d^{3/2} n^2 \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {d}}{\sqrt {d}+i \sqrt {e} \sqrt [3]{x}}\right )}{e^{3/2}} \]
[Out]
Time = 0.30 (sec) , antiderivative size = 364, normalized size of antiderivative = 1.00, number of steps used = 18, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.700, Rules used = {2501, 2507, 2526, 2498, 327, 211, 2505, 308, 2520, 12, 5040, 4964, 2449, 2352} \[ \int \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2 \, dx=-\frac {4 b d^{3/2} n \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )}{e^{3/2}}-\frac {4}{3} b n x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )+x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2+\frac {4 a b d n \sqrt [3]{x}}{e}-\frac {4 i b^2 d^{3/2} n^2 \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )^2}{e^{3/2}}+\frac {32 b^2 d^{3/2} n^2 \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )}{3 e^{3/2}}-\frac {8 b^2 d^{3/2} n^2 \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}+i \sqrt {e} \sqrt [3]{x}}\right )}{e^{3/2}}+\frac {4 b^2 d n \sqrt [3]{x} \log \left (c \left (d+e x^{2/3}\right )^n\right )}{e}-\frac {4 i b^2 d^{3/2} n^2 \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {d}}{\sqrt {d}+i \sqrt {e} \sqrt [3]{x}}\right )}{e^{3/2}}-\frac {32 b^2 d n^2 \sqrt [3]{x}}{3 e}+\frac {8}{9} b^2 n^2 x \]
[In]
[Out]
Rule 12
Rule 211
Rule 308
Rule 327
Rule 2352
Rule 2449
Rule 2498
Rule 2501
Rule 2505
Rule 2507
Rule 2520
Rule 2526
Rule 4964
Rule 5040
Rubi steps \begin{align*} \text {integral}& = 3 \text {Subst}\left (\int x^2 \left (a+b \log \left (c \left (d+e x^2\right )^n\right )\right )^2 \, dx,x,\sqrt [3]{x}\right ) \\ & = x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2-(4 b e n) \text {Subst}\left (\int \frac {x^4 \left (a+b \log \left (c \left (d+e x^2\right )^n\right )\right )}{d+e x^2} \, dx,x,\sqrt [3]{x}\right ) \\ & = x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2-(4 b e n) \text {Subst}\left (\int \left (-\frac {d \left (a+b \log \left (c \left (d+e x^2\right )^n\right )\right )}{e^2}+\frac {x^2 \left (a+b \log \left (c \left (d+e x^2\right )^n\right )\right )}{e}+\frac {d^2 \left (a+b \log \left (c \left (d+e x^2\right )^n\right )\right )}{e^2 \left (d+e x^2\right )}\right ) \, dx,x,\sqrt [3]{x}\right ) \\ & = x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2-(4 b n) \text {Subst}\left (\int x^2 \left (a+b \log \left (c \left (d+e x^2\right )^n\right )\right ) \, dx,x,\sqrt [3]{x}\right )+\frac {(4 b d n) \text {Subst}\left (\int \left (a+b \log \left (c \left (d+e x^2\right )^n\right )\right ) \, dx,x,\sqrt [3]{x}\right )}{e}-\frac {\left (4 b d^2 n\right ) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+e x^2\right )^n\right )}{d+e x^2} \, dx,x,\sqrt [3]{x}\right )}{e} \\ & = \frac {4 a b d n \sqrt [3]{x}}{e}-\frac {4}{3} b n x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )}{e^{3/2}}+x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2+\frac {\left (4 b^2 d n\right ) \text {Subst}\left (\int \log \left (c \left (d+e x^2\right )^n\right ) \, dx,x,\sqrt [3]{x}\right )}{e}+\left (8 b^2 d^2 n^2\right ) \text {Subst}\left (\int \frac {x \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d} \sqrt {e} \left (d+e x^2\right )} \, dx,x,\sqrt [3]{x}\right )+\frac {1}{3} \left (8 b^2 e n^2\right ) \text {Subst}\left (\int \frac {x^4}{d+e x^2} \, dx,x,\sqrt [3]{x}\right ) \\ & = \frac {4 a b d n \sqrt [3]{x}}{e}+\frac {4 b^2 d n \sqrt [3]{x} \log \left (c \left (d+e x^{2/3}\right )^n\right )}{e}-\frac {4}{3} b n x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )}{e^{3/2}}+x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2-\left (8 b^2 d n^2\right ) \text {Subst}\left (\int \frac {x^2}{d+e x^2} \, dx,x,\sqrt [3]{x}\right )+\frac {\left (8 b^2 d^{3/2} n^2\right ) \text {Subst}\left (\int \frac {x \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{d+e x^2} \, dx,x,\sqrt [3]{x}\right )}{\sqrt {e}}+\frac {1}{3} \left (8 b^2 e n^2\right ) \text {Subst}\left (\int \left (-\frac {d}{e^2}+\frac {x^2}{e}+\frac {d^2}{e^2 \left (d+e x^2\right )}\right ) \, dx,x,\sqrt [3]{x}\right ) \\ & = \frac {4 a b d n \sqrt [3]{x}}{e}-\frac {32 b^2 d n^2 \sqrt [3]{x}}{3 e}+\frac {8}{9} b^2 n^2 x-\frac {4 i b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )^2}{e^{3/2}}+\frac {4 b^2 d n \sqrt [3]{x} \log \left (c \left (d+e x^{2/3}\right )^n\right )}{e}-\frac {4}{3} b n x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )}{e^{3/2}}+x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2-\frac {\left (8 b^2 d n^2\right ) \text {Subst}\left (\int \frac {\tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{i-\frac {\sqrt {e} x}{\sqrt {d}}} \, dx,x,\sqrt [3]{x}\right )}{e}+\frac {\left (8 b^2 d^2 n^2\right ) \text {Subst}\left (\int \frac {1}{d+e x^2} \, dx,x,\sqrt [3]{x}\right )}{3 e}+\frac {\left (8 b^2 d^2 n^2\right ) \text {Subst}\left (\int \frac {1}{d+e x^2} \, dx,x,\sqrt [3]{x}\right )}{e} \\ & = \frac {4 a b d n \sqrt [3]{x}}{e}-\frac {32 b^2 d n^2 \sqrt [3]{x}}{3 e}+\frac {8}{9} b^2 n^2 x+\frac {32 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )}{3 e^{3/2}}-\frac {4 i b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )^2}{e^{3/2}}-\frac {8 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}+i \sqrt {e} \sqrt [3]{x}}\right )}{e^{3/2}}+\frac {4 b^2 d n \sqrt [3]{x} \log \left (c \left (d+e x^{2/3}\right )^n\right )}{e}-\frac {4}{3} b n x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )}{e^{3/2}}+x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2+\frac {\left (8 b^2 d n^2\right ) \text {Subst}\left (\int \frac {\log \left (\frac {2}{1+\frac {i \sqrt {e} x}{\sqrt {d}}}\right )}{1+\frac {e x^2}{d}} \, dx,x,\sqrt [3]{x}\right )}{e} \\ & = \frac {4 a b d n \sqrt [3]{x}}{e}-\frac {32 b^2 d n^2 \sqrt [3]{x}}{3 e}+\frac {8}{9} b^2 n^2 x+\frac {32 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )}{3 e^{3/2}}-\frac {4 i b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )^2}{e^{3/2}}-\frac {8 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}+i \sqrt {e} \sqrt [3]{x}}\right )}{e^{3/2}}+\frac {4 b^2 d n \sqrt [3]{x} \log \left (c \left (d+e x^{2/3}\right )^n\right )}{e}-\frac {4}{3} b n x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )}{e^{3/2}}+x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2-\frac {\left (8 i b^2 d^{3/2} n^2\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+\frac {i \sqrt {e} \sqrt [3]{x}}{\sqrt {d}}}\right )}{e^{3/2}} \\ & = \frac {4 a b d n \sqrt [3]{x}}{e}-\frac {32 b^2 d n^2 \sqrt [3]{x}}{3 e}+\frac {8}{9} b^2 n^2 x+\frac {32 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )}{3 e^{3/2}}-\frac {4 i b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )^2}{e^{3/2}}-\frac {8 b^2 d^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}+i \sqrt {e} \sqrt [3]{x}}\right )}{e^{3/2}}+\frac {4 b^2 d n \sqrt [3]{x} \log \left (c \left (d+e x^{2/3}\right )^n\right )}{e}-\frac {4}{3} b n x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )-\frac {4 b d^{3/2} n \tan ^{-1}\left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )}{e^{3/2}}+x \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2-\frac {4 i b^2 d^{3/2} n^2 \text {Li}_2\left (1-\frac {2}{1+\frac {i \sqrt {e} \sqrt [3]{x}}{\sqrt {d}}}\right )}{e^{3/2}} \\ \end{align*}
Time = 0.17 (sec) , antiderivative size = 319, normalized size of antiderivative = 0.88 \[ \int \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2 \, dx=\frac {-36 i b^2 d^{3/2} n^2 \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right )^2-12 b d^{3/2} n \arctan \left (\frac {\sqrt {e} \sqrt [3]{x}}{\sqrt {d}}\right ) \left (3 a-8 b n+6 b n \log \left (\frac {2 \sqrt {d}}{\sqrt {d}+i \sqrt {e} \sqrt [3]{x}}\right )+3 b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )+\sqrt {e} \sqrt [3]{x} \left (12 a b n \left (3 d-e x^{2/3}\right )+8 b^2 n^2 \left (-12 d+e x^{2/3}\right )+9 a^2 e x^{2/3}+6 b \left (6 b d n+3 a e x^{2/3}-2 b e n x^{2/3}\right ) \log \left (c \left (d+e x^{2/3}\right )^n\right )+9 b^2 e x^{2/3} \log ^2\left (c \left (d+e x^{2/3}\right )^n\right )\right )-36 i b^2 d^{3/2} n^2 \operatorname {PolyLog}\left (2,\frac {i \sqrt {d}+\sqrt {e} \sqrt [3]{x}}{-i \sqrt {d}+\sqrt {e} \sqrt [3]{x}}\right )}{9 e^{3/2}} \]
[In]
[Out]
\[\int {\left (a +b \ln \left (c \left (d +e \,x^{\frac {2}{3}}\right )^{n}\right )\right )}^{2}d x\]
[In]
[Out]
\[ \int \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2 \, dx=\int { {\left (b \log \left ({\left (e x^{\frac {2}{3}} + d\right )}^{n} c\right ) + a\right )}^{2} \,d x } \]
[In]
[Out]
\[ \int \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2 \, dx=\int \left (a + b \log {\left (c \left (d + e x^{\frac {2}{3}}\right )^{n} \right )}\right )^{2}\, dx \]
[In]
[Out]
Exception generated. \[ \int \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2 \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2 \, dx=\int { {\left (b \log \left ({\left (e x^{\frac {2}{3}} + d\right )}^{n} c\right ) + a\right )}^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int \left (a+b \log \left (c \left (d+e x^{2/3}\right )^n\right )\right )^2 \, dx=\int {\left (a+b\,\ln \left (c\,{\left (d+e\,x^{2/3}\right )}^n\right )\right )}^2 \,d x \]
[In]
[Out]